/*
 * @Author: Dorange.Wang
 * @Date: 2021-07-20 10:58:43
 * @LastEditors: your name
 * @LastEditTime: 2021-07-20 11:01:28
 * @Description: file content
 */
import { getTenantAppInfounique } from "@/apis/app/HmTenantAppController";

const state = {
  info: {},
};
const mutations = {
  setInfo(state, payload) {
    state.info = payload;
  },
};
const actions = {
  async loadAppInfo({ commit }) {
    const info = await getTenantAppInfounique();
    commit("setInfo", info);
    return info;
  },
};
const getters = {
  appInfo(state) {
    return state.info;
  },
};

export default {
  getters,
  state,
  mutations,
  actions,
};
